<%@page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>数据明细</title>
<style type="text/css">
</style>
<script type="text/javascript">
var pageSize = 5;
var types = ["一收入下滑仪表", "二资金短缺仪表", "三库存断货仪表", "四目标缺失仪表", "五呆账死帐仪表", "六审批越权仪表", "七财产流失仪表", "八利润下滑仪表", "九报表误差仪表", "十财务人员仪表", "十一横向沟通仪表", "十二预警值变更仪表", "十三紧急事项闪烁表"];
var type = <%=request.getParameter("type")%>;
$(document).ready(function() {
	queryDetails(1);
});

function queryDetails(pageNo) {
	var settings = { 
			condition: {
				pageNo: pageNo,
				pageSize: pageSize, 
				type:types[type],
			    oneDay: false,
			    itemNameLike: "其中：%"
			},
            queryUrl: '/data/query.do',
            pagingToolID: "paging", //分页代码存放的标签ID
            isMultiOrder: false,                        //是否可同时对多字段排序
            allowAdjustColWidth: false,                  //是否允许调整列宽
            rowAttr: {
                name: 'id',
                forJson: 'id'
            },
            onClickRow: function(trObj) {               //行项目点击时调用的回调方法
            },
            onInit: function() {
            },
            columns: [
            //{ tableHeader: 'ID', name: 'id', display: 'none' },
            { tableHeader: '日期', name: 'accdate', align: 'left', width: '15%'},
            { tableHeader: '项目名称', name: 'itemName', align: 'left', width: '15%'},
            { tableHeader: '本期数值', name: 'itemValue', width: '15%', isOrderByField: true, tableAlias: 'u', orderBy: 'asc'},
            ]};
    $.asLoadQueryMessage($("#grid"),settings);
}
</script>
</head>
<body>
<div id="rightsiber">
    <div id="grid"></div>
         <table width="100%" border="0" align="center" cellpadding="0"
             cellspacing="0">
             <tr>
                 <td id="paging" style="display: none">
                 </td>
             </tr>
         </table>
    </div>
</body>
</html>